Is there way to center a window using a hotkey?

There’s a preference in the Gnome tweak tool to achieve this by default, by I rather prefer on-demand by pressing a hotkey.

The ‘toggle windowed’ (Super+Down) hotkey may actually achieve this at least when used in conjunction with the said tweak, but I’m not sure yet. Doesn’t preserve the window dimensions, so not quite an answer to the question.