Resize Windows After Unplugging From Monitor

When I unplug my laptop from my monitor (monitor display is at a higher res than laptop) the windows don’t resize to the resolution of the laptop. Also because I extend the display so the monitor display is separate from the laptop display, any window on the monitor doesn’t snap back onto the laptop workspace properly; the windows end up out of sight.

Is there a config setting that I need to set to sort this out so the windows resize properly and snap into the view of the laptop workspace?