My son is 2.5 and does this at bedtime. He will talk and play with his motorbike and rider anywhere from 5 mins to an hour. He never gets out of bed and to be honest, if he's happy then we leave him be.
When he was napping, he would sometimes spend the whole of naptime playing, but we figured it was quiet-time and left him to it.