A 747-400 cockpit escape hatch:
Judging by its position, the external pressure on the fuselage at the hatch location should be considerably lower than the static (atmospheric) pressure, so even with the cabin depressurised, air should still be sucked out of the cockpit, as long as it's pumped in from somewhere else (packs or ram air intake, if there's any).