Cosmological aspects of the Eisenhart–Duval lift