Hrm..
The rating is peak, unless otherwise stated.
Sometimes a peak rating is given, e.g., 20V DC, 30V peak. In that case, the pulse duration will also be given.
If the gate charge is on the order of 10nC or more, then the 1k resistor will provide a filtering effect, significant for a pulse of 1us length.
In practice, an average power MOSFET fails around Vgs = 60 to 80V, though it could be as low as 30 or 40V, hence the conservative rating of 20 or 30V.
As mentioned, a MOSFET equipped with ESD diodes may also survive such treatment.
And now that you know... you know why not to do it.

Tim