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