Windows backend: cleanup WinRT usage


Qt 6 does not support WinRT as a separate platform.
qeventdispatcher_winrt_p.h was removed in 6.0 and runOnXamlThread()
calls make no sense.

Clean up the code to get rid of stale ifdefs and method calls.
Replace all runOnXamlThread() calls with Immediately Invokable Lambda
Expressions (IILE) to minimize the diff.

Pick the changes to all LTS branches to simplify further bugfixing.

Pick-to: 6.7 6.6 6.5 6.2
Change-Id: I183adc487873dfa110ac94599825e7c660db42ee
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
commitc96404b9642c59cc922fe224c687ac02b37ab05d
parent00e00a723fa2ba566b46d221f58683e45c3ce81d
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 12 Mar 2024 13:01:10 +0100