input: Support Input Methods for internal windows and effects
The internal Qt QPA is now connected directly to InputMethod stack when any item has focus.
Unlike the wayland protocol nothing is double buffered because we should process everything before the next frame.
Split from 6590, this is a version that doesn't treat input method as a source of input events when handling keyboard events. Instead it has effects code inside InputMethod.