pub unsafe fn with_ui<R>(body: impl FnOnce(&Ui<'static>) -> R) -> R
Retrieves the [imgui::Ui] for rendering a frame.
imgui::Ui
The [imgui::Ui] should only be accessed in render thread.