Magistrate says Western NSW drug rehab facility needed