Can you fly to your destination from Amsterdam?
The most straightforward way from St Pancras to Heathrow is to walk swiftly from the Eurostar terminal to the tube station below St Pancras, then hop on a Piccadilly line tube which will take you all the way to Heathrow in about an hour.
If you got your timings right I guess you might save some time by switching to the Heathrow Express at Paddington but I think it would be a minimal saving.
Generally speaking, if all goes well you can get from St Pancras to Heathrow in an hour by tube. But bear in mind you’re relying on your train from Amsterdam being on time, then it can take a long time to get off the train and move through St Pancras.
I’ve used - or tried to use - Eurostar on three occasions. The first time, all trains were cancelled due to a body on the line. The second time, all trains between Brussels and Amsterdam were cancelled due to storms and high winds. The third time, everything went absolutely like clockwork. So: as the previous poster said, do you feel lucky?
In case there is flexibility in your plans, it may not be ideal to take a four-hour train journey, for which you’ll need to check in 60 minutes in advance, get to London, have a nail biting hour-long transfer then check in for a flight - when there’s an international airport right there in Amsterdam. I’d only take the train from Amsterdam to London to actually go to London.