if you want to save to current state of a window so when it will be called it will open in state you want, all you have to do is close the window with CTRL (press down) + X (the X on the top corner of the window) .
There is 3rd party application that also can help
windowstate - https://github.com/LichP/windowstate winsize2 - https://sourceforge.net/projects/winsize2