Jai comes with an example for using ImGui with SDL2 and OpenGL. This is a D3D11 port of that example.