If you create an X11 app, you can run it on the RPI02W, but it requires starting X11, which will consume all available RAM.
If you implement your app with Windows CE and run it on the RPI02W using Wine, it will consume even more RAM.
However, if you implement it with ImGui and the SDL2 backend, it won't require X11 to run, leaving all the RAM available for your app. Additionally, you can compile and run your ImGui app for Windows CE without needing to change the code, no need for additional drivers and call translators. Isn't that a reason to use ImGui?