Command to collect windows of one or all apps in one monitor?
You can use a third party window manager like Stay to assign windows to the display where you'd like them to reside. By using Stay to restore windows, all of them move to their designated spot. For example, you could set your windows to the display that you're currently viewing.