Revert "Revert "app: Fix window size when a second tab is added by drag-n-drop""

This reverts commit b670353dc291b771af4ae28d899aa42e842bd11f.