macos: ensure GdkMacosWindow in surface discovery

We want to ignore windows that are not related to those controlled
by the GDK backend.

Fixes #3533
11 jobs for wip/chergert/fix-macos-window-check in 50 minutes and 2 seconds (queued for 1 second)