API for dock-like behavior

Is there any macOS API for implementing a custom macOS dock?

I want my custom dock to stay on a different part of the screen, let's say, snapped to the right of my screen, and interact with windows the same way the native dock does.

I could implement a non draggable window for positioning purposes but what I really want is this dock to interact with other windows and desktop icons as if it's the actual dock.

Specifically, I want that maximizing windows, like when double clicking on the title bar, not to go behind my custom dock. Also, I would like desktop icons not to go behind the dock.

Is it possible to implement that in macOS, preferably in Swift?

I know I could hook the accessibility API to try to move windows around but I'd prefer to avoid this workaround. I don't want to correct window positions, I want them not to go behind the dock in the first place when maximizing them.

Thanks.
API for dock-like behavior
 
 
Q