Shot fired into Sydney home grazes man

A man has had a close call after someone fired a shot through a bedroom window in western Sydney.

Police said the projectile grazed the 23-year-old's neck and lodged in a cupboard in the second-floor bedroom of a Sefton home early on Sunday.

A car was heard outside and a second shot was fired, with police called to the home about 2am.

A number of others in the house weren't injured and the 23-year-old did not need medical treatment.

© AAP 2019