When using UI Toolkit, typically it will install an event listener in the form of the `PanelEventHandler` component which intercepts events from the `XRUIInputModule`. However, the `XRUIInputModule` currently does not support sending UI Toolkit events from the Event System on behalf of the XRUIInputModule.
Instead, `EventSystem.SetUITookitEventSystemOverride` can be called to bypass this default mechanism when it becomes the current/activated Input Module by the `EventSystem`.
You can activate this function via the Unity Editor in the XR UI Input Module called **Bypass UI Toolkit Events**.