Add drag behavior

Implements a drag behavior and modifies Popup to use it and drag by the title bar.