draw line without window

Hello, is it possible to create a simple horizontal line in the middle of my screen but i dont want this to be displayed in a window. If this can be done, can someone pls tell me how or maybe show an example.
Thanks for any help.

And you are talking about which operating system?
How is this related to OpenGL anyway?

nvm…