In such case, open in XXE the topic you want to reference and click on the dashed line found at the bottom the tab of the document view to have both the map and the topic side by side.
For this task, it may be more convenient to have one view at the right of the other rather than one view below the other. To do this, use Options > Quick Preferences > Split Window Vertically .
Click anywhere on the document view containing the topic to make sure this document is the active one and then, drag the bookmark icon1 found in XXE's node path bar.
OR, if the XML file contains several nested topics, first select the topic element you want to reference as if you wanted to edit it2 and then drag anywhere inside it while pressing the Alt key to drag its reference.
Note that this drag facility is fully aware of the way elements are referenced in DITA. For example, if you drag a p element having "audience" as its id attribute and if this p element is contained in a topic element contained in file file://home/john/doc/topic1.dita and having "introduction" as its id attribute, you'll end up dragging string "file://home/john/doc/topic1.dita#introduction/audience".
drop site which may be used to add
a new topicref at the end of the element.