picking create drag drop of 2d point with opengl

hello.
I wish create a c++ application in opengl that works in 2d.
I wish create points on the screen with the mouse click at the mouse coordinate.
For begin I would like to connect the dots with your mouse and drag the points from one side to the other screen, like “drag and drop”.
How i can work in 2d with opengl and create points lines ecc…?
and do picking of the point’s
there is some tutorials, books ,links ecc…