A Perth court has heard the moments leading up to a horror fatal crash as a doctor went on an expletive-laden rant while careening through the streets at high speed.