Situation: I am opening the door.
Alternative situations: I am about to get out of the room through the door on the left side of the bookshelf. I am opening the door to leave the room.
Question: Am I closer to the window or the door?