Open a new window in run-time [GLUT]

Hi,
I’m a novice OpenGL developer and I’m using GLUT for my first project.

Is there the possibility to open/close one or more OpenGL windows during run time? For example in new threads?

My idea is this:
IF (user click onto a object)
THEN (I open a new window with the magnification of the object from many different perspectives)
UNTIL (I close all the magnification windows when the user click onto other places)

Thanks to all
best regards

You can create an object with a method of setting up camera parameters and initiating a window formation. (InitDisplay…)

Then each time a user clicks on object , instantiate the class. you get new object with different memory, call the method containing InitDisplay()… etc.