How to make object clickable and make appear UI menu next to 3d object in VR?

How to make when you click on any 3d object and menu (UI interface) appears next to it + also when you click on the button, it closes and the same 3d object stays? (in VR) Like on picture.