I love it when highly intelligent people flesh out their views on why we're here.
My personal view is simplistic.
When God created the universe he made it fully formed. It has apparent history because without this the ecological systems would collapse.
Asking what God was up to before creation assumes that time existed then.