xref--pop-to-location

xref--pop-to-location is a compiled Lisp function in `xref.el'.

(xref--pop-to-location LOCATION &optional WINDOW)

Goto xref-location LOCATION and display the buffer.
WINDOW controls how the buffer is displayed:
nil -- switch-to-buffer
'window -- pop-to-buffer (other window)
'frame -- pop-to-buffer (other frame)