"Open UIDescription Editor" right click menu disable?

How can I disable this menu for a specific view? For example, I wish to handle right button click in my Custom View.
I know that UIDesc editor works for Debug only, but it gives extra work to test something that requires right click while working in debug.

Just handle the right click in your view, or does this not work? The context menu should only open after no one else has handled the right click.