The accretion flow onto white dwarfs and its X-ray emission properties