Maximum privacy. If you are lucky enough to have a spacious bathroom, a separate water closet is ideal. Avoid door traffic by installing a pocket door.
Pocket doors are space savers in the bathroom, as already mentioned, but the way they sit on their tracks means they don't seal as tightly as a conventional door.