I believe that NPC doors need to be interior to a building unless you have a mod that allows otherwise.
However, I am puzzled as to why your lot type is set as an Apartment lot. Is this as viewed in Edit Town? What that does (again, without mods) is engage the town's roommate service so that up to 7 NPC roommates will be assigned to the resident household living in the one usable unit. This designation is for the Uni style apartment lot and is based on the concept of dorms, ported to a homeworld.
For a Late Nite style apartment lot with the callbox, private/public room markers, and NPC doors, the more typical choice for lot type is Residential-Regular (or Ownable if your actively played household is to purchase it). Again, unless you are using an apartment mod that requires something different.