It sounds like you're a subtenant; are you an authorized subtenant?
I cannot find codes or regulations specific to this issue for your state; there may be such codes, or may be local regulation, but I'm not presently finding it.
Typically a legal bedroom must have two means of exit -- meaning that it may be possible for a room to be a legal bedroom if it has no window, but in most cases the window would serve as the second means of exit.
There is no reason that you can't have a bedroom adjacent to the entry to a building or, for that matter, you couldn't choose to set up your home so that people entered into your bedroom (if, for some reason, you wanted that).
Meanwhile, try spending time outside of your bedroom; outside of the apartment, if necessary.

