I've been down a deep rabbit hole inventing the universe to make my apple pie, but it's actually getting somewhere.
I'm back in C++ because it's what I'm comfortable with. Got a base for a UI system with a pretty generic core running a hybrid IM thing where the scene is more or less recreated each update, but there is a node structure that allows for iterative layouts etc.
Rendering and layout can be done with custom callbacks.