Is there anything within a 4 brick radius of the door? This includes tiles (like on the floor).
- ----
-|oooo
-|oooo
- ----
If the door opens this way -->
The | represents the door.
The - represents a stud where you can put bricks.
The o represents a stud where you cannot put a brick.