A man has been charged with murder after another man was found dead at a Sydney unit.