I'm not sure it's doable to do non-retained accessible UI, as it would essentially require to build a retained mode representation for accessibility interfaces to walk through.
imgui has special applications, but it's becoming ready for more general use - especially in game tools where you want densely packed content over 3D render (or not even).