Screen overlay / pseudo full screen


Hi, I’m trying to develop an app for capturing screenshots, but i have no idea how to create a window that will be drawn above everything (including dock and menu bar), so i can draw over it.

I need this for selecting a region to capture, similar to this:

Real full screen is not suitable as there is really long animation.