One commentator writes
"Just as with target shooting, you must have a visual of three things: the foreground, the target, and beyond the target. You don't shoot until all three are safe to do so. The handgun gives you the power to wait: lock your door and get on the far side of the room. Shooting through a closed door is going to be a bad move nearly 100% of the time."
Seems reasonable to me