How do I detect if a UI is INSIDE another UI?

So I´m making a minigame where the player needs to stop a moving square in a sweet spot, but I don´t know how to detect if a UI is in the sweet spot.

you can use this Gui collision module