I looked at KWin::Window on the Kwin scripting API page but didn’t find any ways to make a given window become maximized.