I just wonder if such library is already done. Because I don’t want to waste my time
You could also you SDL which can do similar things crossplatform.
Another vote here for GLUI - very nice and all components are rendered via OpenGL. Requires that your application uses GLUT, last time I checked.
GLUT based solutions are not suitable for me. But it is nice that GLUI sources are given