For that have to use set_cancel method. According to the condition it will not allow the drag and drop.
Example
ddb=new $Ig.DragDropBehaviour();
ddb.get_events().addDragStartHandler(DragStartHandler);
function DragStartHandler(sender, args)
{
args.set_cancel(true);
return;
}