Pilot hangs out of cockpit window to retrieve passenger's phone