I don't know what happened to Punk mentally during his AEW run, but he clearly went off the rails and lost his head while he was there. There's no way he would get away with pulling that shit in WWE even for one second but if he wants to continue to wrestle then WWE is literally the only option left for him at this point as they're the only ones who could afford him.
From my observations, WWE is a far more professional environment to work in than AEW as they don't have active talent in management positions, and as much as Punk is viewed as 'anti-authority' he works better in a far more professional environment especially in his advanced years. I think he could get on board with an Edge style schedule and he would be a big benefit to WWE in a role like that, even if it's for a short term contract. He would get a big pop and the crowd would get behind it, no doubt. There's also plenty of potential for a heel turn as he plays an excellent heel.
I hope it happens personally. Survivor Series is in Chicago and it looks to me like they're leaving some options for there to be a space for him on the card. It would blow the roof off if he was to return there.