Politics should be kept out of sport unless there's a direct connection.
There is no real way to keep politics out of sport - if a sports body accepts entrants from a particular regime that's a tacit acceptance of their authority, which is a political stance. Refusal to accept from a particular regime is, equally, a rejection of their authority or validity, and is a political stance. Everything from there down is going to have a political tone, and all individual sports bodies can do is set out their stall early and stick by their guns.
The All England Club took a stance last year, and were penalised by the WTF for it - this year they've opted not to take the same stance, but that is itself a political stance that their outrage isn't sufficient to risk income and prestige.
The WTF's apparent acceptance of individuals taking their own positions (i.e. not shaking hands) stands in contrast to, say, FIFA's nonsense about acceptable and unacceptable armbands of inclusion which rears its head every time there's a tournament these days.
My personal take - and I've not seen any commentary from Azarenka one way or the other on her stance on the Russian invasion - is that she's a tennis player, not a politician or a military official or a diplomat, and it's therefore not something she should be personally attacked for.
O.