Airline toilets are pressurized along with the rest of the aircraft. So, nothing would happen. You close the lid, as you would any other toilet, to keep the cloud of germs from spraying all over the room. Airline toilets are serviced by the ground crew.