how to create a frameless window app

How do i create (in OSX) a frameless window application?
e.g. i’d like to have a 4 pixel height, full screen width window with no system knobs and handles.

Thanks !

I have the code of a borderless application, and it works pretty good. If you want I could give you the code, which might be helpful for you. However, when I set the Window State to full screen, the application takes up more space than my screen resolution, so there are some pixels outside the screen in all directions.

Yes that code would be very welcome indeed.
I don’t neet full scene, just a tiny strip op the top.
Possibly always visible.