GLFW has an open issue on creating an OpenGL context in an existing window.
Trying to achieve this with an extra window is going to be very difficult to get right as you’re finding. The alternatives are to use a UI system such as Qt which has an OpenGL widget you can use, or use an OpenGL UI library for your main menu such as in this post on UI in GLFW.