I have overridden a standard salesforce button with Visualforce page. I am using a lwc component inside it using ltng:out. Then from lightning component I want to navigate to some other page but I am not able to do so.
In aura I used to use sforce.one.navigatetourl for similar situation.
Browser Back Button Not working Properly in Lightning for Vf Pages?
If I use window.location then I get this window inside window UI. 
How to safely navigate back to salesforce lightning ui from here. I have used lightning navigation that doesn't work inside ltng:out.
Code is pretty simple:
<aura:application extends="ltng:outApp" access="GLOBAL">
<aura:dependency resource="c:accountDelete" />
</aura:application>
cmp.html
<template>
<lightning-button label="goThere" onclick={handleNavigation}></lightning-button>
</template>
cmp.js
import { LightningElement, api, wire } from 'lwc';
handleNavigation(){
window.location = '/001';
}
Visualforce page:
<apex:page standardController="Account" sidebar="false">
<apex:includeLightning />
<div id="LightningComponentid" />
<script>
$Lightning.use("c:AccountDeleteApp", function() {
$Lightning.createComponent("c:accountDelete",
{
"id" : "{!$CurrentPage.parameters.id}"
},
"LightningComponentid",
function(cmp) {});
});
</script>
</apex:page>