basis.ui.window: take in account ddelement reference to decide what element to drag
devpanel: various improvements for template viewer