No. It's a very bad option. (a) the hot air ccles back in and (b) the hot humid air cycle back in. So a lot of the time, you are cooling the outdoors
- which is too hot anyway.
If you must use one of these portable units (and I gave up on them 10 years ago) put a duct through the wall - or at the very least seal all round the hose that you have poking through the window so that there aren't any leaks.
You really are far better off with proper split system. Last year during the 33 degree heat and excess humidity - and with a lot of electronic equipment round me - my environment stayed below 21 and below rh 45%. It doesn't half make for more productive working conditions (not to speak of leisure conditions) during the unpleasant part of the year.