[Applications] Fix wrong implementation of AttachWindowBelow method (#3384)