A burglar tied up a Melbourne man and tried to rape him at knife-point in his own home, Victoria Police allege.

Officers came across alleged burglar Mark McCormack by chance on Saturday as the 47-year-old was driving erratically around Frankston with his terrified victim tied up beside him.

Mr McCormack had forced the resident into his own car so he could drive the 54 -year-old to an ATM and make him withdraw cash, the Melbourne Magistrates Court was told on Tuesday.

Mr McCormack didn't appear in court because he was still in pain from injuries sustained when the car crashed on Saturday while he sped away from an unmarked police car, his lawyer said.