You're concentrating on peak power, but average is what matters.
It's simply Icc = Qg(tot) * Fsw, and further, * (Vgs(on) - Vgs(off)) or * Vcc to get P.
If the driver has an internal regulator or other means of limiting output, its power dissipation will be proportionally higher (as expressed with the latter case), when Vcc exceeds Vgs(on) - Vgs(off). I've used several SMPS controllers that work this way, where Vin might be rated 30V or higher, while an internal 8-15V regulator furnishes internal logic and gate drive supplies. (Note that driver power can be much higher than gate resistor power, but you asked about gate resistor, so this is all technically extraneous information.)
The gate resistor must also be rated for the peak power and current, or energy, under relevant pulse conditions (i.e. a pulse duration of ~Rg * Qg(tot) / Vgs(on)). This can be hard to find, but it's such a small duration, I don't think it matters, at least not for any size resistor you'd be able to get away with in the first place (say 0402 up).
Finally, note that Rg here is total gate circuit resistance, which includes driver output and transistor internal resistances. Only the external resistor dissipates its fraction of this total. Obviously in the limiting case of zero external resistance, all is dissipated by the driver and transistor.
There is also the edge case where less power can be dissipated overall, when a slowly-varying gate voltage is used, with reactive drive (such as from a series inductor with diode clamping). When Ciss * Rg^2 < Lg, dissipation will be lower. This is almost always impractical to use (drain switching speed is slowed, greatly increasing switching losses for a tiny savings in control losses), and I'm not aware of any applications offhand (but, there might be some oddball cases where it was used, and, literally, I'm just not aware of them), but it's at least a curiosity that it can be done.
gate resistor, ranging from "anything will do" to "put something and see what happens"
Maybe another variant is no (current limiting) resistor. It depends how delicate the driver is. As far as load is concerned, a mosfet gate is similar to a small capacitor. If it is a bias resistor to stop the mosfet switching randomly when the driver is floating (say at power up) then maybe 10k but, within reason, "anything will do". \$\endgroup\$