It only seems to work with widgets that are already interactive such as buttons and text boxes.
A button will prevent left click events from firing, but not right clicks. A text box will consume both left and right clicks.
But panels, images, etc. don’t do anything no matter what I set Visibility to.