score:10
Yes, you can do this. When you check in at DXB inform the check in agent that you have a long layover at YYZ and need to get your checked baggage there, and ask them to short check it.
If you don't do this, your baggage will be checked through to EWR, because it's no longer necessary for people transiting YYZ via US preclearance in T1 to go through Canada immigration and recheck their bags landside (except for overnight layovers). Such baggage would end up in the baggage claim in US preclearance, rather than the landside baggage claim where you want it to be.
Note that you'll get your baggage just fine, but the airline will be annoyed at you later, for engaging in "hidden city ticketing".