Converting UI Widget to a node

I found that image on google images , i was trying to find a way to create display UI Menu
on click , Im attaching the full image along with reference link

This is where i found that image -

But if you can tell me , how to create a UI Menu to show up on clicking an object and disappears on clicking a close button on the UI menu , that’d be great , the issue is also with the UI menu being fixed to the viewport and the game cursor wont go onto the menu