The artist’s witty, immersive retrospective at the Art Gallery of Ontario broaches basketball, Indigenous culture and gay desire