How to create a UI element near to a clicked game object?

Here are some ui plugins, you might try dialog plugin for 1 level menu, like this demo shown.