As an EMT, I had to deal with people who discovered their loved ones dead (whether they accepted that or not is a separate question). Our protocols enabled us to pronounce someone was dead, after consultation with the ER, in certain circumstances. The survivors ranged from expected ("George is finally at peace, isn't he?") to OMFG ("How did this happen?").
If you want the scene beyond when the doctor gives the family the news, the next step would be seeing the body. And hospitals let you go in to see the body, which will look substantially like they are alive (skin color will be off, absolutely no movement, jaw frequently hangs open, body in position of repose (moved by nurse if this doesn't happen), any equipment still with body, eyes either open or closed).
Depending on the survivor, I would encourage the survivor to talk to the dead person. There's a lot of emotions going through a person at this point, whether they are visible or not. By being able to talk with the dead person, it helps survivors address some of these emotional needs. This scene can range from a very calm goodbye to screaming at the person for abandonment.
I still remember a woman who's husband died suddenly from a heart attack around lunchtime. Granddaughter arrived home in the evening to discover his body. Woman was notified at work and raced home. We were staying on scene because the granddaughter was not doing good and the funeral home was going to be delayed.
I took the woman in to see her husband, where she lasted for about a minute before she needed to leave. After about half an hour of her sitting in the kitchen, I asked her if she wanted to talk to her husband again. I mentioned to her that it would be okay to tell him how she felt, and to yell at him for leaving her. She thought about it for a bit, went back into the bedroom and talked with her husband. After about five minutes, I could hear her telling him off for leaving her behind.
The woman still thanks me every time she sees me for giving her that opportunity.
You can do a lot with this scene if you want to.
Best of luck,
Jim Clark-Dawe