I certainly wouldn't recommend some random shop just dropping in universal a roof that "fits". That's asking for problems. You can get aftermarket roofs that are designed for specific vehicles.
I agree with all of this. The panoramic roof is amazing. And as noted, you're probably not going to save any money going aftermarket. In fact, in some cases it could cost more. I would only do the aftermarket roof if a factory one isn't available.
Again, this is assuming a universal fit aftermarket roof. You can get a quality aftermarket sunroof that is every bit as safe/stable as the OEM roof. The one I had put in my '05 had a support structure mounted between the headliner and sheet metal to account for the hole. It spanned the truck and framed in the sunroof.
I agree that you don't want a universal fit installed by an inexperienced shop. If you go aftermarket with an item like this, you want one designed specifically for the Ram, with that specific cab type (RC, QC, CC) and installed by a reputable shop that stands behind the product/work and has some staying power. That's a lot of requirements, but it can be done. It's just a whole lot easier to just get the factory one. My point is only that there is an option if a factory sunroof is not available.