dragdrop: lazily load local variables

(integrated from trunk branch change fb5160b by Todd Whiteman <toddw@activestate.com>)