Keep mouse cursor within widget boundaries

Hi,

as the title says I want to keep the mouse cursor within a widget.

I found a post regarding this : https://forums.unrealengine.com/t/how-to-lock-the-mouse-in-a-widget/408853

This only prevents the cursor from leaving the window (Editor Window)

Is there something I am missing?

In Slate this looks quite simple
FReply::LockMouseToWidget + FReply::ReleaseMouseLock