Add GtkIMCocoaWindowDelegate.