Prevent snapping resized window to hidden windows
Workspace::adjustWindowPosition() properly handles hidden windows and it also excludes more window types, but Workspace::adjustWindowSize() only shares a small fraction of those checks due to getting out of sync because of code duplication.
(cherry picked from commit 260319c3)
Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org