You don't need to have a constant redraw and IMGUI libraries do keep internal state. In fact both of these are explicitly mentioned in the linked article:
> IMGUI does not mean that the library doesn't retain data.
> IMGUI does not mean it needs a continuous loop nor need to refresh continuously.
> IMGUI does not mean that the library doesn't retain data.
> IMGUI does not mean it needs a continuous loop nor need to refresh continuously.