[Plugin] How to correctly bind a resource to the editor?

You can see here: Plugin Howtos: Make a plugin to edit selected Objects