Placed the window title in a ContentControl

The window title is now placed inside a ContentControl, so the title width can easily be measured.