public static void DisplayResult(List <GameObject> results, SearchFilter filter = null, bool dock = true)
        {
            // Window setup
#if UNITY_2019_OR_NEWER
            OutputWindow window = dock ? CreateWindow <OutputWindow>(typeof(SearchWindow)) : CreateWindow <OutputWindow>();
#else
            ResultsWindow window = CreateInstance <ResultsWindow>();
#endif
            window.minSize           = new Vector2(400, 200);
            window.titleContent.text = "Search Results";
            // Filter
            if (filter == null)
            {
                filter = CreateInstance <SearchFilter>();                // new empty filter group
            }
            else
            {
                filter = filter.DeepCopy();  // copy filter group to preserve settings
            }
            window.Filter = filter;
            // Results
            List <SelectionEntry> selection = new List <SelectionEntry>();
            foreach (GameObject result in results)
            {
                selection.Add(new SelectionEntry(result));
            }
            window.SelectionEntries = selection;
            window.Show();
        }