Pick nearest object: set sprite position to object.x, object.y
Object is one of the places where it can be dropped
Sprite is the thing you dragged
If you only want it to snap only when the distance is less than some value, add
distance(object.x,object.y,sprite.x,sprite.y) < yourvalue
as a condition.