For fuck's sake. The point was that at the time Ukraine was part of USSR and by attacking Ukraine Hitler has attacked USSR with all the consequences. It seems that you are trying to do something different here but I'll leave you to it.
I didn't think I'd it necessary to mention that Ukraine was a part of USSR and Poland at the time. It's common knowledge. What isn't common knowledge is that Hitler had plans for Ukraine in particular (inspired by Hlodomor).
Ukraine wasn't a distinct state then. There were many many factors involved [0]
[0] https://en.wikipedia.org/wiki/Causes_of_World_War_II