This Code in Katana/Python creates a Backdrop and resizes around any nodes that the user has selected:
nodeGraphTab = UI4.App.Tabs.FindTopTab('Node Graph')
nodeGraphTab._NodegraphPanel__fitBackdropNode()
If you were to manually create a node (or multiple), select the nodes then run that code, it will create something like this:

BUT if I make a node programmatically and select it programmatically, my code only creates the Backdrop, but fails to resize and move it. It's almost as if the creation of the node needs to be "baked" in somehow before its recognised.
My code:
import NodegraphAPI
# Get the root node
rootNode = NodegraphAPI.GetRootNode()
#Create a Node
node = NodegraphAPI.CreateNode("Alembic_In", rootNode)
#Select the node in the viewport
NodegraphAPI.SetNodeSelected(node, True)
nodeGraphTab = UI4.App.Tabs.FindTopTab('Node Graph')
nodeGraphTab._NodegraphPanel__fitBackdropNode()
The above code produces this incorrect result:
Could try this code in Katana and let me know what Im doing wrong?
I'm using Katana 5.0v1

I got the answer from Christian over that the Foundry forum: