Desktop widget contextmenu

Hello
I wanted to attach a contextmenu to the desk rather than the shortcuts as shown in the sample contextmenu. Could someone show me how to attach a contextmenu to the desk please.
Thank you