Thanks for the replies! After reading them a few times and experimenting I think I'm understanding it now.
To create and position a rect using paths, I'm creating it with ui.Path.rect() and just giving 0,0 for the position with the desired size. Then I'm setting the position property to locate the center where I want it.
Seems to be working, thanks for the help!