Can I use absolute/relative xpath in WinAppDriver directly ? without storing in Object Repository

In Katalon studio we can use below the line of code. but there is any way we can pass the XPath without storing objects in object repo.

Windows.setText(findWindowsObject(‘Object Repository/CommScreen/RegistryTextBox’), ‘ABCD1234’)

like:

driver.findElementByName(‘ABC’).findElement(By.name(‘toolStrip1’)).findElement(By.name(‘Exit’)).click()

If anyone has any idea about this, please let me know .