Moved some code from Window to new class WindowBase in order to allow code reuse in future
Window is now draggable. TODO: only drag when drag is initiated when cursor is on window