Using a Line Trace to interact with a world space widget

Not really. It really is that straightforward:

Note that it’s attached to the camera and Interaction Source → Center Screen. And this:

is us pretending that F key is the Left Mouse button which results in mashing F and buttons responding:

You can then place a non-interactive widget in the screen centre - this part is purely cosmetic.