I just tried this approach on Windows Calculator. It did not work, extending the Calc only to the width of the desktop, the height did not change at all.
Probably inside the Calculator app there's some code preserving the window's dimensions within certain limits.