Added dragging support.

Very buggy, crashes when a second window is added.