Help detecting MouseButton1Up within a plugin widget

I need to detect MouseButton1Up within a widget, how would I do this?

I have tried using UserInputService and plugin:GetMouse() but they only work withing the viewport but not in the widget, I also tried using detector buttons that filled the whole widget but they would not work consistently…