This is interesting. I think the reflection API is the way to go and maybe it can be plugged into the engine. On a side project we are using react native just fine and the nim code as a library (which is shared with the backend). Another option for cross platform UIs is to bind .NET. I need to play with it, but it can be done via the reflection API as well. Imagining loading a dll in Nim and having a macro generating all the types for the interop. Probably without IC it will be useless though but it's technically possible.
In general I like the idea of leverage on a framework that already has nice tooling support and people working full time on them more than trying to build one from scratch