For almost three weeks, at the height of a once-in-a-generation crisis, Dominic Raab was in charge of the UK government.