Thousands of people have. I have (not using a T5) and there's an immense amount of information out there (including on here).
I'm probably going to come off sounding like an #^$, but it's the voice of experience: You need to do a crap ton of research and reading.
Posting this kind of thread is only really going to let you find out that people have done it successfully. In order to even try to get started on your own swap, you'll need to do many, many hours of searching and reading. Everything is out there for you to find, though, that's the good news.
This is a very involved swap to do "right" and there's a *lot* that is going to depend on the year/model of your donor.
So I'm not trying to be difficult, but the kinds of questions you're asking don't have simple "social media" kinds of answers and you'll need to do the legwork yourself to figure it out more than a "yes" or "no".
There are multiple 4.0L swap threads on here (mine included) that would be a good place to start. The issue is that the details you need will depend on where your donor motor comes from. These swaps are ALL ABOUT the little details that it takes to actually make everything work once you mount the motor in the Jeep. The physical swap of getting a 4.0L into your Jeep is simple, getting everything sorted out from there is the PITA.
It can all be done, it's been done countless times before, but getting yourself educated on what is needed by searching and reading is the only way you'll get enough knowledge to make it work if you're going DIY. Start there and then we're here to help with specific questions.