Currently by default, the "Minimize" and "Maximize" functions are missing from some Flatpak apps, namely Firefox, Tor and LibreWolf. I request that by default those two functions should be present.
KWin doesn't control what apps do in their CSD. Please report this to the problematic apps.