Trump has pulled America from a sprawling Asia-Pacific commercial deal and climate agreements, imposed billions of dollars of tariffs on Chinese goods, and withdrawn the US from the World Health Organization at the height of a global pandemic. And where the US has retreated, Xi has stepped forward.