You will want to use Mouse.Delta in UI.Panel.Tick while UI.Panel.HasMouseCapture to read mouse movements.
You can call this from UI.Panel.OnButtonEvent for mouse clicks.