editor: Set the content of ObjectDockWidget into the UI file

This allows to view the contents of the UI file more easily and remove
useless code.

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