Looks like it does almost everything that we need and properly sets up/restores states.
Maybe this will allow us to not use resetGLStates anymore?
Here's one problems, though - it doesn't support OpenGL ES. @Alia5 - can you take a look at it and maybe even add ES support via PR to ImGui directly?