Drag & drop custom html from component to template

I would like to drag custom html from component to template.
Any idea how to achieve this?

You can use common Drag API to register draggable and droppable areas.

http://docs.webix.com/helpers__dnd.html

//makes node draggable
webix.DragControl.addDrag(html_node);
//template will work as active drop target
webix.DragControl.addDrop( $$("template").$view );

Thanks a lot!!