"Build musl libc statically, set up a toolchain to use it, build libc++ for that toolchain, get libwayland, link that statically (which their build scripts don't support, roll your own), get xcb,libxau,libxwhatever and build those statically as well, and implement TWO platform layers, dynamically checking for wayland support. There's like 5 different ways to set your window icon. Yes, you need to implement all of them. Now for loading the graphics API......."
On Windows it's a call to RegisterClassW followed by CreateWindowW.
An operating system is a style of thinking about your work. WINE is a way to get Windows applications to run (by now run decently) under GNU/Linux. These Windows applications are nevertheless foreign bodies in the whole kind of thinking which GNU/Linux is built around.
It's sad because it's true.