It is understood that some airlines already adopt such a procedure, whereby if a pilot wishes to take a break, they must first call a crew member into the cockpit and once they have entered, only then can the pilot exit the cockpit - Something which more, if not all airlines could adopt.