What they want is to get rid of apps like YouTube Vanced that are making them lose money (and other Play Store apps)
Anyway, Apple already does this with unknown apps downloaded from the internet, you need to go to security settings and hit a button there.