editor: Set a custom context menu event

This allows to group the toolbars and dock widgets, and also to add
the lock menu item.

Signed-off-by: Guillaume Clement <gclement@baobob.org>