After being deposed as Warchief of the Horde in Battle for Azeroth, Sylvanas Windrunner travels to Icecrown Citadel in the Scourge-infested wastes of Northrend, and confronts the reigning Lich King, Bolvar Fordragon. Taking the Lich King's Helm of Domination from him, she tears it in two, shattering the veil between realities and opening a portal to the Shadowlands, Azeroth's afterlife. The Shadowlands have become warped in function during recent times. The Maw, a place in the afterlife reserved for the most sinful souls, is now absorbing all souls.
The Realm of Shadows may be the same World of Shadows as the one that becomes visible when a [Elixir of Shadows] is consumed. It may also have something to do with shadow magic and shades. Death knights, necromancers, and undead as a whole share a strong connection with the Realm of Shadows from many hints that can be seen in-game. In the death knight starting zone, death knights are given the task to enter the Realm of Shadows in order to gain their Deathcharger. Later on, death knights are eventually able to learn the ability [Raise Ally] which pulls their ally's spirit back from the Realm of the Dead and forces it back into their body. Upon doing so, a buff is applied to the player stating that: "A touch of the spirit realm still lingers..." This shows that death knights and necromancers both have a connection to the Realm of the Shadows/Dead to perform necromancy which furthers the idea that they actually are drawing their magical power from it.
The Shadowlands were originally intended to be a fully playable zone in World of Warcraft, designed for high-level play. The idea was that as deceased characters made their way back to their corpses, they'd see high-level players battling creeps in the area, which would inspire lower level players to increase their character level so they could experience the zone for themselves.
Shadowy Tormentors inhabit this dimension, and emerge from it to torment death knights such as Koltira Deathweaver. The Lich King originally kept them at bay, but after the Knights of the Ebon Blade left his service, the tormentors are now loose upon them. He even appears in the World of the Dead, as he calls it, riding a frost wyrm during  The Power to Destroy.
The final destination of the spirits of the deceased remains a mystery to the priests and philosophers of Azeroth. However, as spells such as [Resurrection] can reunite a dead body with its spirit, and a majority of living creatures from the tauren to the troll shadow hunters claim they can communicate with and call upon the power of the spirits, a widely held belief is that the spirits of the dead remain on the Material Plane — in an immaterial state that can only be altered or contacted through the use of magic.
Sometimes, the spirits roam the Shadowlands without resting. It can be because their resting place wasn't complete, because of a battle in their resting place or because of the corruption of their resting place. To bring eternal peace to the souls, it is needed to destroy the source of corruption or by making a ceremony with items such as [Tuskarr Ritual Object]. A spirit in the Shadowlands can, with enough power over other souls, tear a hole into the living world once they are strong enough. This is how Jin'do returned to Azeroth.