Not perfectly. I can infer several things you might be asking.
Are you asking how you can create a window by some other means, and then render to it with GL? That is have some generic draw code that will render on any window?
Sure. You can do this with native wgl or GLX, or it looks like you can even do this with GLUT too. You just glutCreateWindow your windows, store off the window ID, and then glutSetWindow to make one of them active. Then your draw code just draws on whatever the active window is.