A man has been charged after he allegedly attempted to open the emergency exit door during a flight into Sydney Airport.