Accessibility - detecting click on window title bar

I'm looking for a way how to detect click on NSWindow title bar using Accessibility.


I've implemented observer to get clicks, I'm able to get clicked window, it's origin, size or role + subrole. But is there any way how to be sure I clicked on the title bar, the one used to drag windows?


Thank you