OpenGL subwindows handle

hi all,

Can anyone point out a pseudo code on how to move a handle for subwindows like in this youtube video?

Simple Graphical User Interface (C++ / OpenGL) - YouTube

TIA.

Best Regards,