Creates a new view and attaches it to a specified target window.
Example
let { identity } = fin.Window.getCurrentSync();
fin.Layout.createView({
name: 'test_view',
url: 'https://example.com'
}, identity).then(console.log);