How to make widgets appear on mouse

Hello Everyone I wanted to make a widget appear on my mouse location when I click a button for my inventory system i’m creating.

I want it so that when lets say I click on apple in my inventory a widget appears on my mouse location on top of the inventory widget. In that widget that appears will be like Eat and drop(two buttons)

So it’s not at the cursor location but on another widget’s location, is that right? If you show it at cursor location, it will be misaligned since you can’t expect the user to be pixel perfect. Can you clarify?