When the aircraft is not pressurized, either on the ground or if depressurized during the flight (intentionally or due to an accident), then pilots can open them. On most modern aircraft, the opening procedure is the same. The window is unlatched, and it then slides inwards into the cockpit and opens to the side.