The simple answer is no, you cannot. I think the only way to change the visibleRect screen visibleRect be to introduce code into the AppKit and swizzle method.
Even then, it may not do what you need, because this method may not be what Apple uses to define a βsafe areaβ for windows and will almost certainly not work with Carbon applications.
Nothing you do with windows will change that.
What you can do is use the Accessibility framework to rearrange windows if you find that their frames have changed so that they overlap your toolbar window. Unfortunately, I think you may need a survey for this.
source share