Star formation through cosmic space and time as traced by Milky Way progenitors