Hi 88160853,
The document outline windows cannot open the contents in code editor, you need to use it with "designer". Please refer more details here:Document Outline window
By the way, we suggest you could submit a new feature here: https://developercommunity.visualstudio.com/content/idea/post.html?space=8
Best Regards,
Dylan