Use QWindow instead of window ids in API

Nicolas Fella requested to merge work/nico/wid into master

Global window ids don't exist on Wayland, therefore the whole mechanism here doesn't work correctly there

Using QWindow alone doesn't fix that, but at least it makes the problem not exposed into the API, and is just neater in general

Merge request reports