Drag-And-Drop in Solidwork

I have a problem when i try to drag an path name from the list box (the list box is in the TaskPane )
The problem that i got is when i try to DoDragDrop() if droped on taskpane the solidwork will automatic open that assembly if droped in modelview it will inserted as sub-assembly
I want to disable the automatic open assembly when i droped, how can i do that?

SolidworksApi macros