A man died in his car after a cardiac arrest, an inquest has been told.