Function Window.handlePostedEvents

handle all events from queue, if any (call from UI thread only)

void handlePostedEvents();