I think you don't realize that SDL2 does not actually use opengl, it uses directX if you don't choose to manually set up opengl (on windows).
The main reason why the window is not responsive is because you are not polling the events, which you must do to tell your OS that everything is a-ok.
Here is a minimal example of, the
SDL_PollEvent(&e)
is what makes the program work
https://wiki.libsdl.org/SDL_CreateRenderer
Look at lazyfoo tutorials to better understand SDL2 (the tutorial has flaws, like in the textinput example he forgets to free the memory when getting clipboard data, but overall it is a very nice tutorial that shows every step and explains with depth, but at least the code sticks to 1 file which makes it simple).
Also if you look at task manager and you see the program using 100% of one core, make sure you put in a
SDL_Delay(1);
in the main loop, or make sure vsync is on.