Our bathroom door opened into our bedroom and you had to walk around the door to exit.  The barn door is exactly what was needed.