Makes a collector pane the visible child of a switchable layout, and returns it as well. The switchable layout is found by looking up the parent hierarchy starting from pane.
The switchable layout should have one or more children. If it has one child, a new collector pane is made using args as theinitargs withbuffer-name defaulting to"Background Output". If it has more than one, it searches through the children to find the first collector pane.