The accretion history of the Milky Way – I. How it shapes globular clusters and dwarf galaxies | Synapse