I can't believe I'm saying this but electron is better then imgui for developing actual programs

If you want to avoid web for whatever reason then use qt or (if cross platform is not a concern) win32/swiftui/gtk/haiku widgets/whatever
(And yes I consider gtk in that camp, it ports so badly I consider it practically the platform specific framework of GNOME)