How to intercept Finder window resize event

Is it possible to intercept a click on the resize window button in Finder (or other apps)…?
How to accomplish that in/via Applescript ?

Note: NOT like a “click at {xA, yA}” command, but the opposite:
Find out whether such click was done, and intercept the subsequent action.

http://www.prefab.com/uiactions/