windows: Use a message-only window for `WindowsPlatform` (#37313)

Previously, we were using `PostThreadMessage` to pass messages to
`WindowsPlatform`. This PR switches to an approach similar to `winit`
which using a hidden window as the message window (I guess that’s why
winit uses a hidden window?). The difference is that this PR creates it
as a message-only window.

Thanks to @reflectronic for the original PR #37255, this implementation
just fits better with the current code style.


Release Notes:

- N/A

---------

Co-authored-by: reflectronic <john-tur@outlook.com>
2eb7ac97e0张小白 committed on 9/2/2025, 2:32:24 PM· committed by GitHubparentf06c187
4 files changedLine totals unavailable