update availableScreenRegionWithCriteria
--the new implementation is much simpler and takes into account all alignment types and view dock/panel modes