Fwiw I could approve this if you think it helps winewayland, but I'm not completely sure this is the right thing to do.
I don't see anything like that on the X11 side, and from reading about it a bit it seems to me that WS_EX_TRANSPARENT has some specific behavior that we should be implementing instead of magically delegating to the compositor. There are some details about it that we would possibly miss by doing that.