If you are a Canadian citizen, you can sponsor your spouse while living or working outside of Canada. Typically, you will have to provide evidence that once your spouse is granted a PR visa, you will both be living in Canada.
If you are a Permanent Resident, you must be a resident of Canada to...