Detect UI element under mouse for panels or nodes

Now I remembered recently I was trying to think of something similar. I had not exactly the mindset of an event driven model in mind, but now as of speaking it fits correctly in this design model. It can be solved with some API capability like this.

A slider property that acts like an operator