attaches a DHTMLX component to a dhtmlxWindow
name: string, object- the name or object of a component
config: object- optional, the configuration settings of a component
Related sample: Window. Attach widget
The DHTMLX Message, Popup, Window components can't be attached to Window because these components can't have the parent container due to their architecture principles.