Custom Overlay to Prevent Accidental Mouse Clicks

Floating menu's will block any interaction if they are visible before your trigger. The question is how would you display such an overlay before you execute the right-click?

Maybe you could use an approach like this? (Show a floating menu when holding right mouse, do a right-click when doing just a short press)