appkit: Add some methods useful for waking up event loops from other threads

r? @metajack
Ack, I just realised that this should be `otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_` (note the last underscore)