Hi Shiv,
Technically you have to be in Canada while the application is in process since one of the requirement for sponsoring is to be a resident of Canada. I believe a month or so should be fine. If you stay for long, you could lose your residency status. That being said I have a few friends...