Windows only “forget” their old place if you move them or with applications like Slack they are “minimized” to the system tray.