I think what you're asking for has existed for a long, long time. QML.
Qt had bindings to many languages, C++ is a choice, not a demand, if you'd like to use Qt.
By all means, I'd be happy to be proven wrong. Last effort I saw on this direction was node-gui + React. I believe that project isn't being maintained. Being able to use something like Vite to build desktop programs would be a blessing.