In my company the pilot is never left alone in the flight deck. If one of us wants to go to the loo, then we have a CC member sit with the other guy in the FD until the one that has gone out returns. So you would never have a lone person in the FD. One wonders why this was not a policy in Germanwings, or other airlines that have had similar incidents - could this have prevented this disaster?