Is it ethical to withdraw a paper if it’s still with editor beyond the journal time policy?
It is ethical to withdraw it until your agreement with them is finalized. But it seems unwise to me and a (very) hasty decision if you do. Two weeks in the publishing industry is just about a nanosecond. There are a lot of reasons for delay.
You won't get the two weeks back if you withdraw and will need to start the process over at another, likely even slower, journal. Why? Calm down. Take several deep breaths.
And you can ask for an update before you make any final decision.
Withdrawing won't make the editors happy with you but the paper is yours.