Sneak + right-click your dog while holding an item and it leads you to the chest that has it.
Your dog follows the scent of your last death and leads you back to your items.
Sneak + right-click your tamed dog with an empty hand and it starts tracking.