Dragging objects with the mouse

Does anyone know how to implement this in opengl ? code?

you have to use the openGL selection mode…this is a pain…