Wouldn’t it be nice if you could connect to a Windows machine using remote desktop, start to work on something, disconnect and then come back later and pick up where you left off? In the default configuration for remote desktop that is not possible, Windows will kill the session when you disconnect.
You can however change that behavior using the Group Policy Editor. Start the Group Policy Editor in Windows and navigate to:
Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits
You need to enable the following policies:
Set them to never: