Create a state using 'is dragged and dropped' instead of 'is hovered'

How to create a new state when an element ‘is dragged and dropped’ instead of ‘is hovered’

add a draggable elements plugin