If you have been a non-resident of Canada for tax all this time, then buying a property there and renting it alone isn't going to turn you into a tax resident (unless your totality of circumstances causes CRA to consider you a tax-resident of Canada).
To have been considered a tax non-resident of Canada, you need to have cut off your residential ties with Canada when you left Canada (a spouse living in Canada often means you haven't).
As Football16 said, any Canadian property you buy - when ready for occupancy - needs to be rented at arm's length, not held vacant. CRA don't want you to have on-demand accommodation from property you own there - e.g. retain a room (or basement or in-law apt etc) in the property you rent, for your own use on visits. Otherwise it can be interpreted as residential ties.
There needs to be a degree of permanence to your absence - usually a 2-year absence is sufficient, but CRA's interpretation depends on a "totality of your circumstances". You need to be taxable somewhere (if you live in a tax-free haven, I guess that still counts as taxable, except that tax is zero - I don't know). You should not be seen to have left Canadian residency for the express purpose of avoiding Canadian income tax.
Though they mention closing bank accounts, giving up driver's licence, closing club memberships etc as evidence of cutting residential ties with Canada, these are secondary issues and I have not found them overly fussed about this as long as these are not particularly active and your primary residential ties are clean. I kept my Ontario driver's licence for 14 long years while outside and CRA didn't ask or care (many others have kept it). I don't think they'd care about the odd Canadian bank account either unless its activity shows residential ties - people do need these sometimes even without residential ties (more so now, when it's hard to open an account without showing up in person, under KYC standards). After all, you may need it simply to support investments or now to receive rent.
Don't ever use your Canadian health card on a visit there - normally it lapses after a few months's absence but I don't know how they could know you're gone. That is tantamount to using the public health care system paid for by taxpayers and treating yourself as a tax-resident.
It can also have to do with what your status was when you lived in Canada - were you a tax return filer there and then did you advise CRA when you left Canada, and then stop filing returns in subsequent years? I can't say much on that but that alone may not be that big a problem, though in some circumstances it might.
The CRA website mentions the general principles, but in granular terms in practice, some of it has to do with interpretation in light of the general experience of others and what courts have held.
Good luck on your investment. May the loonie do well for you too.