5 hours would give you plenty of time to take a taxi (bus will take too long) to the centre and you can hang out there. Expect 50 Grivni or the like for the taxi.