add draggable directive and used for window