OK, so let's play it out from there:
23. Qg3 f4
IMO, the best response for White is Qf3, but even then there's an immediate response:
24. Qf3 Qg7
which puts pressure on king's line and gives two possible counter-moves:
25. g4 fxg3
Which opens f-line Rook's mobility and allows you to threaten up to f4.
25. e5 Rae8
26. Qe4 Qxe5
Which isn't bad, but essentially forces an exchange of queens while at disadvantage.
26. Nxg4 Bxg4
and whatever happens, Black e-line Rook takes control of its line.
Overall, Qg3 isn't a bad move, but it leads to mobility at cost of position almost as my Qf3 did. It's still better than what I have chosen under pressure, so take it however you want. :)