This is awesome. I think immediate mode with some optimizations where it makes sense to avoid recalculating layout every frame is the sweet spot for UIs. Most UIs don't change that much but retained mode goes too far with trying to cache everything. I'll have to check this out.