Are you saying that you would use the verb 'left' (or had left) rather than 'forgot' (or had forgotten) in that question,
Yes
or you would never use the past tense ( or the past perfect)?
No, I would prefer the past perfect in this context.
Is that to say, "Would you ever drive a car if you HAD left your licence at home?" implying "Would you ever drive a car (future in the past) if you had left (in the past) your licence at home?"
Er ... no. No, the meaning is that your keys are still at home. Note where the 'ever' is. It is not asking whether you drive your car if you had ever left your keys at home. That would be silly. "I left my keys at home once - three years ago, so now I never drive my car." This is quite unrealistic, and the context rules it out.
If I want to ask someone if he's going to donate some money to a charity (in the future) if he wins a lottery (in the future), is the correct version "Would you ever donate some money to a charity if you win a lottery?"?