Implement setting priority by dragging.