CMS-1640 SpaceManager: Create api RightClickMenu and make use of it.
Hide menu when detected click outside of menu.