cherry-pick: reintroduce maximizing task on activating it in switcher
only maximize when not in docked mode to not break windowed workflow when docked. BUG: 492077
(cherry picked from commit 3353d452)
Co-authored-by: Luis Büchi luis.buechi@server23.cc