How do I close the desktop app and keep the positions of windows?
To have all windows restore their position, you need to use Quit TradingView in the drop-down menu of the window title:

To have all windows restore their position, you need to use Quit TradingView in the drop-down menu of the window title: