Visit Canada from Dubai with a valid B1/B2 visa on a Pakistani passport

You need a Canadian visa. See Do I need a visa to visit Canada?

This will lead you to a tool that will tell you that you you need a visa.

Permanent residents of the US are exempted from the requirement to hold a Canadian visa, but this exemption does not apply to those who hold US visas.