Dispatch the event from AppWindow directly.