The drag and drop behavior allows you to limit the axis upon which an object is dragged to strictly vertical -- this is found in the behavior properties. To limit the Y range, every tick you can set the Y position of your Sprite to something like the following:
clamp(Sprite.Y, LOWBOUND, HIGHBOUND)
LOWBOUND and HIGHBOUND being whatever you want to limit your min and max Y values to respectively.