I have an issue with the "keep remote directory up to date" feature and this appears to happen randomly.
I start it in a new window and minimize it to the system tray. After several hours, for some reason I can't maximize WinSCP. Clicking on the icon doesn't do anything, I always have to end it in the task manager and restart the process.
Version 5.21.6 (Build 12913 2022-11-28)
Computer did not go to sleep and was not locked. An external device may have been reconnected as I usually do this, although I'm not entirely sure if this happened when I encountered this issue. Network may have been reconnected as well.