The rule of thumb is to install interior doors to open into the room. This approach prevents doors from becoming an obstruction in tight areas like hallways. Doors attached to tight spaces will often swing out to keep someone from getting trapped inside.