A reciprocal branching problem for automorphic representations and global Vogan packets