Constrain drag and drop to within the stage

I am using a drag and drop class and am trying to contsrain the area where drag and drop can occur so that its not possible to drag items outside of the stage,

Any advice anyone could offer on how to do this would be appreciated?

Thanks