For anyone coming across this, here is the solution:
tl;dr: It’s not a CMake issue. It’s an issue with submitting a Win32 app for distribution via the Microsoft Store. The solution is to add runFullTrust
capability.
I have provided the solution and an explanation over on the Qt Forums. Although See Why does my QML application window appear as a separate window (on Windows only) | Qt Forum