While Got Your Back exists, it's a two-step process using Gmail API (back up and restore, and restore process takes a LONG time due to per-user API limit, though Google recently made some changes). There is nothing in the API that will let you convert a mailbox to a Shared mailbox.
As for Drive content, you can transfer the ownership using GAM (Data Transfer API)