Gaseous drag and planetary formation by accretion