In a tree view, IO can click on a disabled item, and then use keyboard navigation to expand and contract that item and move to its child items. You can see that selection of a parent item is indicated by a thin outline:

However, this indication does not appear when selecting this item programmatically. The item becomes the key focus and keyboard navigation from that item behaves as expected, but its initial visual state is as if it were not selected.
If anyone has a good solution to this issue, let me know!
Here's a simple snippet to reproduce behavior:
