My Canadian PR is going to expire on 10th March 2024 & i never used it means i have always stayed in USA and never visited Canada since my PR arrived but now i want to visit Canada in July so i want to know if I have to surrender my PR status before applying Canadian visitor Visa or i can apply visitor visa directly. & in both the cases what is the process?
You cannot apply for a visitor visa because you are still a PR. As mentioned only the PR Card itself expires; status does not expire.
Your status can be revoked for not meeting the only real requirement to maintain your status, which is residing/living in Canada for a minimum of 730 days in each rolling 5 year window. Based on your information you are clearly got going to be able to meet that requirement. If you want to try to salvage your status you need to return to Canada and remain in Canada until you have accrued 730 days...which sounds like something that you are not prepared to do, or are interested in doing.
You will not be refused entry into Canada, but you could easily be questioned (perhaps at length) by a CBSA officer. That conversation
could be followed by the issuance of a 44(1) report for failing to meet the R.O. to maintain status. This would be the first domino to fall regarding your eventual loss of PR status.
Best option seems to be relinquishing your PR, but I'll leave that to you to decide.
Good luck!