British heavyweight Anthony Joshua has opened the door to a fight with former amateur rival Dillian Whyte.