A man has faced court charged with murder after the discovery of a woman's body in an apartment in western Sydney.