Function that can be used to constrain the position of a dragged element.
type DragConstrainPosition = (point: Point, dragRef: DragRef) => Point