How to maximize the editor window

Double click on the current tab to maximize the document window. Do the same again restore the previous state of all docked windows.